<%@ page import="com.gxwgy.wg2404.pojo.EventsPojo" %>
<%@ page import="java.sql.Timestamp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑活动</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui.css">
</head>
<body>
<div class="layui-container">
    <h1 class="layui-text">编辑活动</h1>
    <form action="${pageContext.request.contextPath}/organizer/editEvent2" method="post">
        <input type="hidden" name="eventId" value="${event.id}" />
        <div class="layui-form-item">
            <label class="layui-form-label">活动名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" required="" lay-verify="required" placeholder="请输入活动名称" class="layui-input" value="${event.name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">活动描述</label>
            <div class="layui-input-block">
                <textarea name="description" placeholder="请输入活动描述" class="layui-textarea">${event.description}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">活动开始时间</label>
            <div class="layui-input-block">
                <input type="datetime-local" name="start_time" class="layui-input" value="${event.start_time}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">活动结束时间</label>
            <div class="layui-input-block">
                <input type="datetime-local" name="end_time" class="layui-input" value="${event.end_time}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">活动地点</label>
            <div class="layui-input-block">
                <input type="text" name="location" required="" lay-verify="required" placeholder="请输入活动地点" class="layui-input" value="${event.location}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">名额限制</label>
            <div class="layui-input-block">
                <input type="number" name="capacity" required="" lay-verify="required" placeholder="请输入名额限制" class="layui-input" value="${event.capacity}">
            </div>
        </div>
        <div class="layui-form-item">
            <button type="submit" class="layui-btn">提交</button>
        </div>
    </form>
</div>
<script src="${pageContext.request.contextPath}/static/layui.js"></script>
</body>
</html>
